package com.example.administrator.fangbook.activity;

import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.administrator.fangbook.R;
import com.example.administrator.fangbook.base.BaseActivity;

public class SplashActivity extends BaseActivity {

    @Override
    protected boolean getIsHideState() {
        return true;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(SplashActivity.this, MainActivity.class));
                finish();
            }
        }, 2000);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_splash;
    }
}
